# SPDX-License-Identifier: MIT

SUBDIRS = trace-ir prio-heap plugin graph

lib_LTLIBRARIES = libbabeltrace2.la

libbabeltrace2_la_SOURCES = \
	assert-cond-base.h \
	assert-cond.h \
	assert-cond.c \
	babeltrace2.c \
	current-thread.c \
	error.c \
	error.h \
	func-status.h \
	integer-range-set.c \
	integer-range-set.h \
	lib-logging.c \
	logging.c \
	logging.h \
	object-pool.c \
	object-pool.h \
	object.h \
	property.h \
	util.c \
	value.c \
	value.h

libbabeltrace2_la_LDFLAGS = \
	$(AM_LDFLAGS) \
	$(LT_NO_UNDEFINED) \
	-version-info $(BABELTRACE_LIBRARY_VERSION)

libbabeltrace2_la_LIBADD = \
	prio-heap/libprio-heap.la \
	graph/libgraph.la \
	plugin/libplugin.la \
	trace-ir/libtrace-ir.la \
	$(top_builddir)/src/logging/libbabeltrace2-logging.la \
	$(top_builddir)/src/common/libbabeltrace2-common.la \
	$(top_builddir)/src/compat/libcompat.la

if ENABLE_BUILT_IN_PYTHON_PLUGIN_SUPPORT
libbabeltrace2_la_LIBADD += $(top_builddir)/src/python-plugin-provider/babeltrace2-python-plugin-provider.la
endif
